import Ember from 'ember';

export default Ember.Controller.extend({
    constants: Constants,
    mainController: Ember.inject.controller('business.mainpage'),


    actions:{
      toNurseGroupDetailPage(nurseGroup){
        if(nurseGroup){
          let id=nurseGroup.get('id');
          this.get("mainController").switchMainPage('nursing-worker-group-detail',{id:id,editMode:"edit"});
        }else{
          this.get("mainController").switchMainPage('nursing-worker-group-detail',{editMode:"add"});
        }
      },

    }

});
